home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
STANDALO
/
PIXELFLI
/
SOURCE_
/
NEW_CDEV
/
CDEV.H
< prev
next >
Wrap
Text File
|
1990-11-09
|
1KB
|
50 lines
/*
* cdev.h - standard cdev object
*
* Copyright (c) 1989 Symantec Corporation. All rights reserved.
*
*/
#define _H_cdev
#include "oops.h"
struct cdev : indirect {
/* instance variables */
WindowPeek dp; /* the Control Panel */
int refnum; /* refnum of Control Panel DA */
int rsrcID; /* base resource ID */
int lastItem; /* # of last Control Panel item */
EventRecord *event; /* ==> last event */
long status; /* value to be returned */
/* methods */
long Message(int, int); /* dispatch message */
void Error(long); /* set error return */
void Init(void); /* "initDev" */
void Close(void); /* "closeDev" */
void Activate(void); /* "activDev" */
void Update(void); /* "updateDev" */
void Idle(void); /* "nulDev" */
void ItemHit(int); /* "hitDev" */
void Key(int); /* "keyEvtDev" */
void CmdKey(int); /* "keyEvtDev" (command) */
void Deactivate(void); /* "deactiveDev" */
void Undo(void); /* "undoDev" */
void Cut(void); /* "cutDev" */
void Copy(void); /* "copyDev" */
void Paste(void); /* "pasteDev" */
void Clear(void); /* "clearDev" */
void DoCursor(void); /* "cursorDev" */
};
/* each cdev must implement these */
Boolean Runnable(void); /* "macDev" */
cdev *New(void); /* new(cdev) */